<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    function update() {
        alert("修改成功")
    }
</script>
<body>
<div style="width:800px;height:100%;margin-left:270px;">
    <form action="/teacher/updateTeacher" method="post">
        工号：<input  name="tno" type="number" th:value="${teacher.tno}" readonly="readonly"><br>
        教师姓名：<input  type="text" th:value="${teacher.tname}" name="tname"><br>
        <button onclick="update()" type="submit">提交</button>
    </form>
</div>

</body>
</html>